package com.wwl.cms.utils.designModeTest.strategy;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/27 18:54
 * @description:
 */
public class ToyDuck extends Duck {
    public ToyDuck() {
        flyBehavior = new NoFlyBehavior();
    }
    @Override
    public void display(){
        System.out.println("玩具鸭");
    }
    public void quack(){
        System.out.println("玩具鸭不能叫====");
    }

    public void swim(){
        System.out.println("玩具鸭不会游泳---");
    }

}
